package com.demo.demoproject.constants;

import io.jsonwebtoken.security.Keys;

import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import java.nio.charset.StandardCharsets;
import java.util.Base64;

public class SecretKeysConstants {
    // JWT秘钥
    public static final SecretKey SECRET_KEY_JWT =
            Keys.hmacShaKeyFor("zheshilianggerenxiajibaxiedeyigedemoprojectzanshijiumingwencunchuba".getBytes(StandardCharsets.UTF_8));
    // AES秘钥
    public static final SecretKey SECRET_KEY_AES = new SecretKeySpec(
            Base64.getDecoder().decode("q3V9G4E+G/RIy1B9VwMKDQ=="), "AES");
}